import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var HyxxsAtqnViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(HyxxsAtqnViewmodelForm, _super);
    function HyxxsAtqnViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'code_16c18a8c_1272',
            name: "{{code_16c18a8c_1272}}",
            binding: 'code',
            updateOn: 'blur',
            defaultI18nValue: '编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "code", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'name_fda60829_r2jg',
            name: "{{name_fda60829_r2jg}}",
            binding: 'name',
            updateOn: 'blur',
            defaultI18nValue: '姓名',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_a5bfae00_ta9s',
            name: "{{remark_a5bfae00_ta9s}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "remark", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'state_c8a1e18c_27rn',
            name: "{{state_c8a1e18c_27rn}}",
            binding: 'state',
            updateOn: 'blur',
            defaultI18nValue: '状态',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "state", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'organization_ab7841d2_0xub',
            name: "{{organization_ab7841d2_0xub}}",
            binding: 'organization',
            updateOn: 'blur',
            defaultI18nValue: '组织',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "organization", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'gender_c9b82b1d_5gi4',
            name: "{{gender_c9b82b1d_5gi4}}",
            binding: 'gender',
            updateOn: 'blur',
            defaultI18nValue: '性别',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'countryOrArea_c4f879b9_dl9j',
            name: "{{countryOrArea_c4f879b9_dl9j}}",
            binding: 'countryOrArea',
            updateOn: 'blur',
            defaultI18nValue: '所属国家或地区',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "countryOrArea", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'location_7d2b5e9f_atm1',
            name: "{{location_7d2b5e9f_atm1}}",
            binding: 'location',
            updateOn: 'blur',
            defaultI18nValue: '常驻地',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "location", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'idNumber_30140f27_8zgx',
            name: "{{idNumber_30140f27_8zgx}}",
            binding: 'idNumber',
            updateOn: 'blur',
            defaultI18nValue: '身份证号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "idNumber", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'levelOfMember_6bb3d632_w38u',
            name: "{{levelOfMember_6bb3d632_w38u}}",
            binding: 'levelOfMember',
            updateOn: 'blur',
            defaultI18nValue: '等级',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "levelOfMember", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'levelName_f9f3cb1a_3l0s',
            name: "{{levelName_f9f3cb1a_3l0s}}",
            binding: 'levelName',
            updateOn: 'blur',
            defaultI18nValue: '等级名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "levelName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'privilege_f3753110_jtin',
            name: "{{privilege_f3753110_jtin}}",
            binding: 'privilege',
            updateOn: 'blur',
            defaultI18nValue: '等级特权',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "privilege", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'recommandPeople_78eab758_xt7v',
            name: "{{recommandPeople_78eab758_xt7v}}",
            binding: 'recommandPeople',
            updateOn: 'blur',
            defaultI18nValue: '推荐人',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "recommandPeople", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'phoneNumber_5073e9e4_aksd',
            name: "{{phoneNumber_5073e9e4_aksd}}",
            binding: 'phoneNumber',
            updateOn: 'blur',
            defaultI18nValue: '手机号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HyxxsAtqnViewmodelForm.prototype, "phoneNumber", void 0);
    HyxxsAtqnViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '会员信息',
            enableValidate: true
        }),
        Injectable()
    ], HyxxsAtqnViewmodelForm);
    return HyxxsAtqnViewmodelForm;
}(Form));
export { HyxxsAtqnViewmodelForm };
